import React from "react";
// 注意从dva/router里面引入
import { Router, Route, Switch } from "dva/router";
import Layout from "./layout/layout";

import listenRouter from "./utils/listenRouter";

function RouterConfig({ history }) {
  // listenRouter(history)

  return (
    <Router history={history}>
      <Switch>

        <Route path="/">
          <Layout></Layout>
        </Route>
      </Switch>
    </Router>
  );
}

export default RouterConfig;
